package com.example.demo.request;


import javax.validation.constraints.NotBlank;

public class CreateTaskRequest {

    @NotBlank(message = "任务标题不能为空")
    private String title;

    @NotBlank(message = "任务类型不能为空")
    private String taskType;

    @NotBlank(message = "所属部门不能为空")
    private String department;

    @NotBlank(message = "所属应用不能为空")
    private String application;

    private String repository;
    private String description;

    @NotBlank(message = "创建人不能为空")
    private String createdBy;

    // 可选：审批模板编码，用于自动填充流程
    private String templateCode;
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getTaskType() {
        return taskType;
    }
    
    public void setTaskType(String taskType) {
        this.taskType = taskType;
    }
    
    public String getDepartment() {
        return department;
    }
    
    public void setDepartment(String department) {
        this.department = department;
    }
    
    public String getApplication() {
        return application;
    }
    
    public void setApplication(String application) {
        this.application = application;
    }
    
    public String getRepository() {
        return repository;
    }
    
    public void setRepository(String repository) {
        this.repository = repository;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public String getCreatedBy() {
        return createdBy;
    }
    
    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }
    
    public String getTemplateCode() {
        return templateCode;
    }
    
    public void setTemplateCode(String templateCode) {
        this.templateCode = templateCode;
    }
}